import request from '@/utils/request'

export default {
  addArticle(article) {
    return request({
      url: `/articleService/article/create`,
      method: 'post',
      data: article
    })
  },
  getAllariticle(){
    return request({
      url: `/articleService/article/getAll`,
      method: 'get',
    })
  },
  addVistist(articleId){
    return request({
      url: `/articleService/article/addVistist/${articleId}`,
      method: 'get',
    })
  },

  addCollect(articleId) {
    return request({
      url: `/articleService/article-collect/addCollect/${articleId}`,
      method: 'get',
    })
  },

  deleteCollect(articleId){
    return request({
      url: `/articleService/article-collect/deleteArticlecollect/${articleId}`,
      method: 'delete',
    })
  },

  getAllcollect(){
    return request({
      url: `/articleService/article-collect/getAllCollect`,
      method: 'get',
    })
  },

  getFoot(){
    return request({
      url: `/articleService/footprint/getAll`,
      method: 'get',
    })
  },

}
